const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    proxy: {
      "/api": {
        target: "http://sph-h5-api.atguigu.cn",
      },
      "/topic": {
        // 匹配所有以 '/'开头的请求路径
        target: "https://m.you.163.com", // 代理目标的基础路径
      },
      // 首页的
      "/bapi": {
        target: "https://m.you.163.com",

        pathRewrite: { "^/bapi": "" },
      },
      '/item': {
        target: 'https://m.you.163.com',
      },
    },
  },
});
